package com.uex.dev.manage.admin.po;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.uex.dev.manage.admin.typehandler.ListIntegerTypeHandler;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangchao
 * @since 2024-02-22
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName(value = "t_project_order", autoResultMap = true)
public class ProjectOrderPO extends Model<ProjectOrderPO> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer prjid;

    @TableField(typeHandler = ListIntegerTypeHandler.class)
    private List<Integer> deviceIds;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    private String orderDesc;

    private Integer createUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableLogic
    private Byte deleted;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
